package com.luoying.itew.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.luoying.itew.R;
import com.squareup.picasso.Picasso;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2018/7/12.
 * time 2018-5-10
 * author zm
 */
public class SeeItemView extends RelativeLayout {
    private static final String TAG = "SeeItemView";
    @BindView(R.id.iv_eva_see_itemveiw)
    ImageView ivEvaSeeItemveiw;

    public SeeItemView(Context context) {
        this(context, null);
    }

    public SeeItemView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {
        View.inflate(getContext(), R.layout.eva_data_itemview, this);
        ButterKnife.bind(this, this);
    }

    public void setData(String path) {
        Picasso.get().load(path).into(ivEvaSeeItemveiw);
    }
}
